import request from '@/utils/request'

// 查询设备监测报警列表
export function listMonitorAlarm(query) {
  return request({
    url: '/monitor/monitorAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询设备监测报警详细
export function getMonitorAlarm(id) {
  return request({
    url: '/monitor/monitorAlarm/' + id,
    method: 'get'
  })
}

// 新增设备监测报警
export function addMonitorAlarm(data) {
  return request({
    url: '/monitor/monitorAlarm',
    method: 'post',
    data: data
  })
}

// 修改设备监测报警
export function updateMonitorAlarm(data) {
  return request({
    url: '/monitor/monitorAlarm',
    method: 'put',
    data: data
  })
}

// 删除设备监测报警
export function delMonitorAlarm(id) {
  return request({
    url: '/monitor/monitorAlarm/' + id,
    method: 'delete'
  })
}
